package com.hst.capacity.infra.persistence.jpa.order.intercity;

import com.hst.capacity.domain.model.entity.order.intercity.IntercityDriverTaskEntity;
import org.springframework.data.domain.Page;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;

public interface IntercityDriverTaskRepository extends JpaRepository<IntercityDriverTaskEntity, String>, JpaSpecificationExecutor<IntercityDriverTaskEntity> {
    IntercityDriverTaskEntity findByIdDriverAndStatusLessThan(String idDriver,Integer status);

    IntercityDriverTaskEntity findByIdDriverAndTaskType(String idDriver, Integer taskType);
}